package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealMapper {
	@AutoFill(OperationType.INSERT)
	void insert(Setmeal setmeal);
	
	List<Setmeal> getSetmealBy(String name, Long categoryId, Integer status, Long... ids);
	
	Integer delete(List<Long> ids);
	
	@AutoFill(OperationType.UPDATE)
	void updateSetmeal(Setmeal setmeal);
}
